<?php
namespace Index\Controller;
use Think\Controller;
// use Index\Controller\CommonController;
class CommonController extends Controller {
    public function _initialize(){
        if(!isset($_SESSION['username'])){
            $this->error('还没有登录，请先登录在进行访问',U('Index/Login/Index'),2);
        }
    }

}